package com.regretbuying.front.service.goods;

import com.regretbuying.pojo.Comment;
import com.regretbuying.pojo.Goods;
import com.regretbuying.pojo.Introduction;
import com.regretbuying.pojo.Specs;

import java.util.List;
import java.util.Map;

public interface GoodsService {

    List<Goods> findGoodsByParams(Map params) ;

    Goods findGoodsById(int id);

    Specs findSprcsById(int id,int goodsSpecs);

    /**
     * 根据商品的上架时间和销量查询
     * @return
     */
    List<Goods> getNewProductSelling();

    List<Goods> getNewRecommend();

    List<Goods> getNewIfDiscounts();

    List<Specs> getSpecsGoodsId(int id);

    Introduction getIntroductionByGoodsId(int id);

    int getCountByGoodsId(int id);

    List<Comment> getCommentByGoodsId(int id);

}
